/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>GTS Abbreviation Holidays Christian Roman</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A10726 (C-0-T10720-S10725-A10726-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getGTSAbbreviationHolidaysChristianRoman()
 * @model extendedMetaData="name='GTSAbbreviationHolidaysChristianRoman'"
 * @generated
 */
public enum GTSAbbreviationHolidaysChristianRoman implements Enumerator {
	/**
	 * The '<em><b>JHCHREAS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JHCHREAS_VALUE
	 * @generated
	 * @ordered
	 */
	JHCHREAS(0, "JHCHREAS", "JHCHREAS"),

	/**
	 * The '<em><b>JHCHRGFR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JHCHRGFR_VALUE
	 * @generated
	 * @ordered
	 */
	JHCHRGFR(1, "JHCHRGFR", "JHCHRGFR"),

	/**
	 * The '<em><b>JHCHRNEW</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JHCHRNEW_VALUE
	 * @generated
	 * @ordered
	 */
	JHCHRNEW(2, "JHCHRNEW", "JHCHRNEW"),

	/**
	 * The '<em><b>JHCHRPEN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JHCHRPEN_VALUE
	 * @generated
	 * @ordered
	 */
	JHCHRPEN(3, "JHCHRPEN", "JHCHRPEN"),

	/**
	 * The '<em><b>JHCHRXME</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JHCHRXME_VALUE
	 * @generated
	 * @ordered
	 */
	JHCHRXME(4, "JHCHRXME", "JHCHRXME"),

	/**
	 * The '<em><b>JHCHRXMS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JHCHRXMS_VALUE
	 * @generated
	 * @ordered
	 */
	JHCHRXMS(5, "JHCHRXMS", "JHCHRXMS");

	/**
	 * The '<em><b>JHCHREAS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JHCHREAS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JHCHREAS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JHCHREAS_VALUE = 0;

	/**
	 * The '<em><b>JHCHRGFR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JHCHRGFR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JHCHRGFR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JHCHRGFR_VALUE = 1;

	/**
	 * The '<em><b>JHCHRNEW</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JHCHRNEW</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JHCHRNEW
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JHCHRNEW_VALUE = 2;

	/**
	 * The '<em><b>JHCHRPEN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JHCHRPEN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JHCHRPEN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JHCHRPEN_VALUE = 3;

	/**
	 * The '<em><b>JHCHRXME</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JHCHRXME</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JHCHRXME
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JHCHRXME_VALUE = 4;

	/**
	 * The '<em><b>JHCHRXMS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JHCHRXMS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JHCHRXMS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JHCHRXMS_VALUE = 5;

	/**
	 * An array of all the '<em><b>GTS Abbreviation Holidays Christian Roman</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final GTSAbbreviationHolidaysChristianRoman[] VALUES_ARRAY =
		new GTSAbbreviationHolidaysChristianRoman[] {
			JHCHREAS,
			JHCHRGFR,
			JHCHRNEW,
			JHCHRPEN,
			JHCHRXME,
			JHCHRXMS,
		};

	/**
	 * A public read-only list of all the '<em><b>GTS Abbreviation Holidays Christian Roman</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<GTSAbbreviationHolidaysChristianRoman> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>GTS Abbreviation Holidays Christian Roman</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static GTSAbbreviationHolidaysChristianRoman get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			GTSAbbreviationHolidaysChristianRoman result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>GTS Abbreviation Holidays Christian Roman</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static GTSAbbreviationHolidaysChristianRoman getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			GTSAbbreviationHolidaysChristianRoman result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>GTS Abbreviation Holidays Christian Roman</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static GTSAbbreviationHolidaysChristianRoman get(int value) {
		switch (value) {
			case JHCHREAS_VALUE: return JHCHREAS;
			case JHCHRGFR_VALUE: return JHCHRGFR;
			case JHCHRNEW_VALUE: return JHCHRNEW;
			case JHCHRPEN_VALUE: return JHCHRPEN;
			case JHCHRXME_VALUE: return JHCHRXME;
			case JHCHRXMS_VALUE: return JHCHRXMS;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private GTSAbbreviationHolidaysChristianRoman(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //GTSAbbreviationHolidaysChristianRoman
